package com.prs.crm.domain.sys;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 
 * @author Yanghao
 * 2012-8-1 15:49:31 系统岗位设置
 */

@Entity
@Table(name="sys_syspostset")
public class SysPostSet extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	private String name;//岗位名称
	private String remark;//备注
	@ManyToOne
	private SysPostSet parent;
	@OneToMany(mappedBy="parent")
	private Set<SysPostSet> childs;
	private Integer level;
	private String personName;
	private String personNameId;
	public String getPersonName() {
		return personName;
	}
	public void setPersonName(String personName) {
		this.personName = personName;
	}
	public String getPersonNameId() {
		return personNameId;
	}
	public void setPersonNameId(String personNameId) {
		this.personNameId = personNameId;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public SysPostSet getParent() {
		return parent;
	}
	public void setParent(SysPostSet parent) {
		this.parent = parent;
	}
	public Set<SysPostSet> getChilds() {
		return childs;
	}
	public void setChilds(Set<SysPostSet> childs) {
		this.childs = childs;
	}
}
